package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-12-11
 */
public class Evaluate extends Model<Evaluate> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "evaluate_id")
	private String evaluateId;
	/**
	 * 店铺id
	 */
	private String dinId;
	/**
	 * 骑手id
	 */
	private String ridingId;
	/**
	 * 店铺星星
	 */
	private Integer dinClass;
	/**
	 * 骑手星星
	 */
	private Integer ridingClass;
	private String img;
	/**
	 * 评论
	 */
	private String concent;
	/**
	 * 用户id
	 */
	private String user_id;
	/**
	 * 订单id
	 */
	private String order_id;
	private String addtime;
	private String title;
	private String replyTime;
	/**
	 * 商家回复
	 */
	private String replyConcent;
	@TableField(exist = false)
	private int type;

	///////////////// user
	@TableField(exist = false)
	private String name;
	@TableField(exist = false)
	private String head;
	@TableField(exist = false)
	private Integer role;
	@TableField(exist = false)
	private String phone;

	////////////////// orders
	@TableField(exist = false)
	private String dining_name;
	@TableField(exist = false)
	private String dining_intro;
	@TableField(exist = false)
	private String logo;

	public int getType() {
		return type = 1;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(String replyTime) {
		this.replyTime = replyTime;
	}

	public String getReplyConcent() {
		return replyConcent;
	}

	public void setReplyConcent(String replyConcent) {
		this.replyConcent = replyConcent;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	protected Serializable pkVal() {
		return null;
	}

	public void addImg(String img) {
		if (this.img == null) {
			setImg(img);
		} else {
			this.img += "," + img;
		}
	}

	public String getDining_name() {
		return dining_name;
	}

	public void setDining_name(String dining_name) {
		this.dining_name = dining_name;
	}

	public String getDining_intro() {
		return dining_intro;
	}

	public void setDining_intro(String dining_intro) {
		this.dining_intro = dining_intro;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEvaluateId() {
		return evaluateId;
	}

	public void setEvaluateId(String evaluateId) {
		this.evaluateId = evaluateId;
	}

	public String getDinId() {
		return dinId;
	}

	public void setDinId(String dinId) {
		this.dinId = dinId;
	}

	public String getRidingId() {
		return ridingId;
	}

	public void setRidingId(String ridingId) {
		this.ridingId = ridingId;
	}

	public Integer getDinClass() {
		return dinClass;
	}

	public void setDinClass(Integer dinClass) {
		this.dinClass = dinClass;
	}

	public Integer getRidingClass() {
		return ridingClass;
	}

	public void setRidingClass(Integer ridingClass) {
		this.ridingClass = ridingClass;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getConcent() {
		return concent;
	}

	public void setConcent(String concent) {
		this.concent = concent;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getAddtime() {
		return addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
